package cn.uc.app;
import cn.uc.app.MDiaryActivity;
import cn.uc.app.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import android.widget.Button;


public class WelcomeActivity extends Activity implements View.OnClickListener{

    /** Called when the activity is first created. */

    @Override
    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.entery);
        
        Button btnDiary = (Button)findViewById(R.id.entery_btn_diary);
        btnDiary.setOnClickListener(this);
        
        Button btnGallery = (Button)findViewById(R.id.entery_btn_image);
        btnGallery.setOnClickListener(this);
        
        Button btnBoard = (Button)findViewById(R.id.entery_btn_gboard);
        btnBoard.setOnClickListener(this);
    }
        



    public void onClick(View v) {
        // XXX Auto-generated method stub
        Intent sIntent = new Intent();
        switch (v.getId()) {
        case R.id.entery_btn_diary:
            sIntent.setClass(WelcomeActivity.this, MDiaryActivity.class);
            break;
            
        case R.id.entery_btn_image:
            sIntent.setClass(WelcomeActivity.this, GalleryActivity.class);
            break;
            
        case R.id.entery_btn_gboard:
            sIntent.setClass(WelcomeActivity.this, GraphicsActivity.class);
            break;

        default:
            break;
        }
        
        startActivity(sIntent);
    }

}
